package com.example.ercmssystem2.repository;

import com.example.ercmssystem2.entity.EventType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EventTypeRepository extends JpaRepository<EventType, Long> {
    
    EventType findByName(String name);
    
    boolean existsByName(String name);
    
    List<EventType> findByEnabledTrue();
} 